package com.ktjy.config;

import org.apache.shiro.authz.AuthorizationException;
import org.apache.shiro.authz.UnauthorizedException;
import org.apache.shiro.session.UnknownSessionException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

/**
 * @author lqm
 * @ClassName GlobalExceptionHandler
 * @description: TODO
 */
@ControllerAdvice
public class GlobalExceptionHandler {

    @ExceptionHandler({UnauthorizedException.class, AuthorizationException.class, UnknownSessionException.class})
    public String unauth(){

        return "/403";
    }



}
